package com.xquant.trade.trade.service.impl.otcOption;

import com.xquant.trade.trade.entity.Trade;
import com.xquant.trade.trade.service.impl.TradeServiceAbstract;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class TradeServiceImpl4OtcOptionEnd extends TradeServiceAbstract {

    @Override
    public String[] getTradeTypes() {
        return new String[]{
                "OtcOptionExercise",
                "OtcOptionTerminate",
                "OtcOptionEnd"
        };
    }

    @Override
    public void prepareTrade(Trade trade) {
        super.prepareTrade(trade);
        trade.setOcFlag("C");
        trade.setDimLs("L");
    }


    @Override
    public List getTradeColumnCfglist() {
        return null;
    }
}
